package com.maps;

import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class MapTest {

	public static void main(String[] args) {

		Map<String, String> stringMap = new HashMap<String, String>();

		stringMap.put("1", "One");
		stringMap.put("2", "Two");
		
		stringMap.put("1", "Three");
		 
		
		Set<String> setKeys = stringMap.keySet();
		
		  
		

		for (Iterator<String> iterator = setKeys.iterator(); iterator.hasNext();) {
			String string = iterator.next();

			System.out.println(stringMap.get(string));

		}
		
		

	}

}
